using Godot;

public partial class PauseMenuController : Control
{
    [Signal] public delegate void ResumeGameEventHandler();
    [Signal] public delegate void ReturnToTitleEventHandler();

    private void OnResumeGameBtnPressed()
    {
        EmitSignal(SignalName.ResumeGame);
    }

    private void OnReturnToTitleBtnPressed()
    {
        EmitSignal(SignalName.ReturnToTitle);
    }

    public void OnVisible()
    {
        Visible = true;
    }

    public void UnVisible()
    {
        Visible = false;
    }
}
